package com.finance.model.ip.dto;

import org.springframework.stereotype.Component;

/**
 * @Author: Apollo
 * @Date: 2021/4/18
 * @Description: ip地址查询响应DTO
 */
@Component
public class IpResponseDto {

    private String ret;

    private String msg;

    private String log_id;

    private Data data;

    public class Data {

        private String ip;

        private String long_ip;

        private String isp;

        private String area;

        private String region_id;

        private String region;

        private String city_id;

        private String city;

        private String country_id;

        private String country;

        public String getIp() {
            return ip;
        }

        public void setIp(String ip) {
            this.ip = ip;
        }

        public String getLong_ip() {
            return long_ip;
        }

        public void setLong_ip(String long_ip) {
            this.long_ip = long_ip;
        }

        public String getIsp() {
            return isp;
        }

        public void setIsp(String isp) {
            this.isp = isp;
        }

        public String getArea() {
            return area;
        }

        public void setArea(String area) {
            this.area = area;
        }

        public String getRegion_id() {
            return region_id;
        }

        public void setRegion_id(String region_id) {
            this.region_id = region_id;
        }

        public String getRegion() {
            return region;
        }

        public void setRegion(String region) {
            this.region = region;
        }

        public String getCity_id() {
            return city_id;
        }

        public void setCity_id(String city_id) {
            this.city_id = city_id;
        }

        public String getCity() {
            return city;
        }

        public void setCity(String city) {
            this.city = city;
        }

        public String getCountry_id() {
            return country_id;
        }

        public void setCountry_id(String country_id) {
            this.country_id = country_id;
        }

        public String getCountry() {
            return country;
        }

        public void setCountry(String country) {
            this.country = country;
        }

        @Override
        public String toString() {
            return "Data{" +
                    "ip='" + ip + '\'' +
                    ", long_ip='" + long_ip + '\'' +
                    ", isp='" + isp + '\'' +
                    ", area='" + area + '\'' +
                    ", region_id='" + region_id + '\'' +
                    ", region='" + region + '\'' +
                    ", city_id='" + city_id + '\'' +
                    ", city='" + city + '\'' +
                    ", country_id='" + country_id + '\'' +
                    ", country='" + country + '\'' +
                    '}';
        }


    }

    public String getRet() {
        return ret;
    }

    public void setRet(String ret) {
        this.ret = ret;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getLog_id() {
        return log_id;
    }

    public void setLog_id(String log_id) {
        this.log_id = log_id;
    }

    public Data getData() {
        return data;
    }

    public void setData(Data data) {
        this.data = data;
    }


    @Override
    public String toString() {
        return "IpResponseDto{" +
                "ret='" + ret + '\'' +
                ", msg='" + msg + '\'' +
                ", log_id='" + log_id + '\'' +
                ", data=" + data +
                '}';
    }
}
